<template>
  <div v-loading="loading" class="parentStyle">
    <el-form ref="form" :model="form" :disabled="form.last === 'N' || this.$route.query.id" :rules="rules" label-width="120px" class="dataForm">
      <el-row>
        <el-col :span="12">
          <el-form-item :label="$t('行为发生时间')" prop="behaviorTime">
            <el-date-picker
              v-model="form.behaviorTime"
              clearable
              style="width: 200px"
              type="date"
              value-format="yyyy-MM-dd"
              :placeholder="$t('行为发生时间')"
            />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item :label="$t('登记日期')" prop="checkTime">
            <el-date-picker
              v-model="form.checkTime"
              :disabled="form.registrationType !== 'ZYDJ'"
              clearable
              style="width: 200px"
              type="date"
              value-format="yyyy-MM-dd"
              :placeholder="$t('登记日期')"
            />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item :label="$t('说明备注')" prop="illustrateRemark">
            <el-input v-model="form.illustrateRemark" type="textarea" :placeholder="$t('说明备注')" show-word-limit maxlength="1000" />
          </el-form-item>
        </el-col>
        <el-col v-if="form.last === 'N'" :span="24">
          <el-form-item :label="$t('说明备注')" prop="editText">
            <el-input v-model="form.editText" type="textarea" :placeholder="$t('说明备注')" maxlength="1000" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item :label="$t('登记类型(一级)')" prop="registrationType">
            <el-select v-model="form.registrationType" disabled value="" :placeholder="$t('登记类型(一级)')" filterable clearable @change="typeOneChange(form.registrationType, true)">
              <el-option
                v-for="dict in registrationTypeOptions"
                :key="dict.dictValue"
                :label="$t(dict.dictLabel)"
                :value="dict.dictValue"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item :label="$t('登记类型(二级)')" prop="registrationTypeTwo">
            <el-select v-model="form.registrationTypeTwo" value="" :placeholder="$t('登记类型(二级)')" filterable clearable @change="typeTwoChange(form.registrationTypeTwo, true)">
              <el-option
                v-for="dict in getTypeOneChange"
                :key="dict.dictValue"
                :label="$t(dict.dictLabel)"
                :value="dict.dictValue"
              />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item prop="registrationTypeThree">
            <i v-if="form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'CQZRBF' || form.registrationTypeTwo === 'CQZRQB'" style="color: #ff4949;margin-right: 4px;">*</i>
            <span style="font-weight: bolder">{{ $t('登记类型(三级)') }}</span>
            <el-select v-model="form.registrationTypeThree" :disabled="!isShow" :placeholder="$t('登记类型(三级)')">
              <el-option
                v-for="dict in getTypeTwoChange"
                :key="dict.dictValue"
                :label="$t(dict.dictLabel)"
                :value="dict.dictValue"
              />
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <br>
      <div>
        <div class="area-header">
          <span class="area-header-title">{{ $t('公司信息') }}</span>
        </div>
        <el-row>
          <el-col :span="12">
            <el-form-item :label="$t('关联项目')" prop="dealId">
              <DealSelect
                v-model="form.dealId"
                :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'"
                :placeholder="$t('项目名称')"
                deal-type="equity"
                @change="queryCompany(form.dealId)"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('公司名称')" prop="companyId">
              <el-input v-model="form.companyId" :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD' && form.registrationTypeTwo !== 'MCBD'" :placeholder="$t('公司名称')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item v-if="isShowParentCompanyId" :label="$t('上级公司')" prop="parentCompanyId">
              <el-select v-model="form.parentCompanyId" :placeholder="$t('上级公司')" clearable filterable>
                <el-option
                  v-for="dict in parentCompanyIdOptions"
                  :key="dict.id"
                  :label="$t(dict.companyId)"
                  :value="dict.id"
                />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item v-if="isShowParentCompanyId" :label="$t('上级公司持股(%)')" prop="parentCompanyCentum">
              <Ratio v-model="form.parentCompanyCentum" :controls="false" :min="0" :max="100" :precision="2" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('统一信用代码')" prop="creditCode">
              <el-input v-model="form.creditCode" :placeholder="$t('统一信用代码')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('注册资本') + $t('金额单位')" prop="registeredCapital">
              <Money v-model="form.registeredCapital" :disabled="form.registrationType !== 'ZYDJ' && (form.registrationTypeTwo !== 'ZZ' && form.registrationTypeTwo !== 'QTBD' && form.registrationTypeTwo !== 'QTGDRJZJ')" unit="w" :placeholder="$t('注册资本') + $t('金额单位')" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('注册资本币种')" prop="currency">
              <dict-select
                v-model="form.currency"
                dictionary="currency"
                :placeholder="$t('注册资本币种')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('组织形式')" prop="organizationalForm">
              <dict-select
                v-model="form.organizationalForm"
                :disabled="form.registrationType !== 'ZYDJ' && (form.registrationTypeTwo !== 'ZZXSBD' && form.registrationTypeTwo !== 'QTBD')"
                dictionary="property_organizational"
                :placeholder="$t('组织形式')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('主要行业')" prop="mainIndustries">
              <dict-select
                v-model="form.mainIndustries"
                :disabled="form.registrationType !== 'ZYDJ' && (form.registrationTypeTwo !== 'ZYYWFWBD' && form.registrationTypeTwo !== 'QTBD')"
                dictionary="deal_industry_focus"
                :placeholder="$t('主要行业')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('机构类别')" prop="institutionsCategory">
              <dict-select
                v-model="form.institutionsCategory"
                :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTBD' || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY')))"
                dictionary="property_Institutions"
                :placeholder="$t('主要行业')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('公司层级')" prop="companyLevel">
              <el-input v-model="form.companyLevel" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'JGJCBD' || form.registrationTypeTwo === 'QTBD')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('所属十强产业')" prop="dicker">
              <el-input v-model="form.dicker" :disabled="form.registrationType !== 'ZYDJ' && (form.registrationTypeTwo !== 'ZYYWFWBD' && form.registrationTypeTwo !== 'QTBD')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('注册情况')" prop="registrationIs">
              <el-input v-model="form.registrationIs" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'ZCDBD' || form.registrationTypeTwo === 'QTBD')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('注册地址')" prop="detailsRegistered">
              <el-input v-model="form.detailsRegistered" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'ZCDBD' || form.registrationTypeTwo === 'QTBD')" :placeholder="$t('注册地址')" show-word-limit maxlength="1000" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('法定代表人')" prop="legalPerson">
              <el-input v-model="form.legalPerson" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'FRDBBD' || form.registrationTypeTwo === 'QTBD')" :placeholder="$t('法定代表人')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('公司成立日期')" prop="estiblishDate">
              <el-date-picker
                v-model="form.estiblishDate"
                :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTBD')"
                clearable
                style="width: 200px"
                type="date"
                value-format="yyyy-MM-dd"
                :placeholder="$t('公司成立日期')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('是否并表')" prop="isMergeTable">
              <el-radio-group v-model="form.isMergeTable" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTBD' || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')))">
                <el-radio
                  v-for="dict in yesNoOptions"
                  :key="dict.dictValue"
                  :label="dict.dictValue"
                >{{ $t(dict.dictLabel) }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('是否混合所有制企业')" prop="mixedSystem">
              <el-radio-group v-model="form.mixedSystem" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTBD' || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY')))">
                <el-radio
                  v-for="dict in mixedSystemOptions"
                  :key="dict.dictValue"
                  :label="dict.dictValue"
                >{{ $t(dict.dictLabel) }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item :label="$t('经营范围')" prop="businessScope">
              <el-input v-model="form.businessScope" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'ZYYWFWBD' || form.registrationTypeTwo === 'QTBD')" type="textarea" :placeholder="$t('经营范围')" show-word-limit maxlength="1000" />
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item :label="$t('备注')" prop="propertyRemark">
              <el-input v-model="form.propertyRemark" type="textarea" :placeholder="$t('备注')" show-word-limit maxlength="1000" />
            </el-form-item>
          </el-col>
        </el-row></div>
      <el-row />
      <br>
      <el-row>
        <div v-if="form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'zzjcjy'">
          <div class="area-header">
            <span class="area-header-title">{{ $t('进场交易信息') }}</span>
          </div>
          <el-col :span="12">
            <el-form-item :label="$t('所属产权交易中心')" prop="jcPropertyTrading">
              <el-input v-model="form.jcPropertyTrading" :placeholder="$t('所属产权交易中心')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('产权交易时间')" prop="jcPropertyTime">
              <el-date-picker
                v-model="form.jcPropertyTime"
                clearable
                style="width: 200px"
                type="date"
                value-format="yyyy-MM-dd"
                :placeholder="$t('产权交易时间')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('退出方式')" prop="jcWithdrawalWay">
              <dict-select
                v-model="form.jcWithdrawalWay"
                dictionary="jcjy_tcfs"
                :placeholder="$t('退出方式')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('转让原因')" prop="jcReasonTransfer">
              <dict-select
                v-model="form.jcReasonTransfer"
                dictionary="jcjy_zryy"
                :placeholder="$t('转让原因')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('转让股份比例(%)')" prop="jcProportionTransferred">
              <Money v-model="form.jcProportionTransferred" :placeholder="$t('转让股份比例(%)')" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('受让方名称')" prop="jcTransfereeName">
              <el-input v-model="form.jcTransfereeName" :placeholder="$t('受让方名称')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('受让方行业类型')" prop="jcTransfereeIndustryType">
              <dict-select
                v-model="form.jcTransfereeIndustryType"
                dictionary="jcjy_srfhylx"
                :placeholder="$t('受让方行业类型')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('受让方注册地')" prop="jcRegistrationPlace">
              <el-input v-model="form.jcRegistrationPlace" :placeholder="$t('受让方注册地')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('受让是否国资控股')" prop="jcIsNationalHoldings">
              <el-radio-group v-model="form.jcIsNationalHoldings">
                <el-radio
                  v-for="dict in jcIsNatyesNoOptions"
                  :key="dict.dictValue"
                  :label="dict.dictValue"
                >{{ $t(dict.dictLabel) }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('转让标的净资产值') + $t('金额单位')" prop="jcAssetValue">
              <Money v-model="form.jcAssetValue" unit="w" :placeholder="$t('转让标的净资产值') + $t('金额单位')" @input="countJcEvaluationValue" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('转让标的评估值') + $t('金额单位')" prop="jcAssessedValue">
              <Money v-model="form.jcAssessedValue" unit="w" :placeholder="$t('转让标的评估值') + $t('金额单位')" @input="countJcEvaluationValue" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('经济行批准机构')" prop="jcApprovalAgency">
              <dict-select
                v-model="form.jcApprovalAgency"
                dictionary="jc_approval_agency"
                :placeholder="$t('经济行批准机构')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('挂牌天数')" prop="jcForDays">
              <el-input v-model="form.jcForDays" :placeholder="$t('挂牌天数')" show-word-limit maxlength="100" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('公告方式')" prop="jcPublicAnnouncement">
              <dict-select
                v-model="form.jcPublicAnnouncement"
                dictionary="jc_public_announcement"
                :placeholder="$t('公告方式')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('成交金额') + $t('金额单位')" prop="jcTradingVolume">
              <Money v-model="form.jcTradingVolume" unit="w" :placeholder="$t('成交金额') + $t('金额单位')" @input="countJcEvaluationValue" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('较评估值增加（减少）比例(%)')" prop="jcEvaluationValue">
              <Ratio v-model="form.jcEvaluationValue" :controls="false" :min="0" :max="100" :precision="2" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('转让价款支付方式')" prop="jcPricePaymentMethod">
              <dict-select
                v-model="form.jcPricePaymentMethod"
                dictionary="jc_price_payment_method"
                :placeholder="$t('转让价款支付方式')"
              />
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item prop="jcPaymentRemark">
              <i v-if="form.jcPricePaymentMethod === 'FQFK' || form.jcPricePaymentMethod === 'QT'" style="color: #ff4949;margin-right: 4px;">*</i>
              <span style="font-weight: bolder">{{ $t('支付方式备注') }}</span>
              <el-input v-model="form.jcPaymentRemark" type="textarea" :placeholder="$t('支付方式备注')" show-word-limit maxlength="1000" />
            </el-form-item>
          </el-col>
        </div>
      </el-row>
      <br>
      <el-row>
        <el-row>
          <div v-if="form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'XYZZ'">
            <div class="area-header">
              <span class="area-header-title">{{ $t('协议交易信息') }}</span>
            </div>
            <el-col :span="12">
              <el-form-item :label="$t('转让股份比例(%)')" prop="xyProportionTransferred">
                <Ratio v-model="form.xyProportionTransferred" :controls="false" :min="0" :max="100" :precision="2" />
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item :label="$t('受让方名称')" prop="xyTransfereeName">
                <el-input v-model="form.xyTransfereeName" :placeholder="$t('受让方名称')" show-word-limit maxlength="100" />
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item :label="$t('受让方注册地')" prop="xyRegistrationPlace">
                <el-input v-model="form.xyRegistrationPlace" :placeholder="$t('受让方注册地')" show-word-limit maxlength="100" />
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item :label="$t('受让是否国资控股')" prop="xyIsNationalHoldings">
                <!--              <el-input v-model="form.xyIsNationalHoldings" :placeholder="$t('受让是否国资控股')" show-word-limit maxlength="1" />-->
                <el-radio-group v-model="form.xyIsNationalHoldings">
                  <el-radio
                    v-for="dict in xyIsNationalHoldings"
                    :key="dict.dictValue"
                    :label="dict.dictValue"
                  >{{ $t(dict.dictLabel) }}
                  </el-radio>
                </el-radio-group>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item :label="$t('转让价格')" prop="xyTransferPrice">
                <Money v-model="form.xyTransferPrice" :placeholder="$t('转让价格')" />
              </el-form-item>
            </el-col>
          </div>
        </el-row>
        <br>
        <el-row>
          <el-row>
            <div v-if="form.registrationTypeThree === 'ZRWCHZ'">
              <div class="area-header">
                <span class="area-header-title">{{ $t('无偿划转') }}</span>
              </div>
              <el-col :span="12">
                <el-form-item :label="$t('转让股份比例(%)')" prop="wcProportionTransferred">
                  <Ratio v-model="form.wcProportionTransferred" :controls="false" :min="0" :max="100" :precision="2" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item :label="$t('受让方名称')" prop="wcTransfereeName">
                  <el-input v-model="form.wcTransfereeName" :placeholder="$t('受让方名称')" show-word-limit maxlength="100" />
                </el-form-item>
              </el-col>
            </div>
          </el-row>
          <br>
          <el-row>
            <el-row>
              <div v-if="form.registrationTypeTwo === 'ZZ'">
                <div class="area-header">
                  <span class="area-header-title">{{ $t('增资') }}</span>
                </div>
                <el-col :span="12">
                  <el-form-item :label="$t('新增出资人')" prop="zzNewInvestors">
                    <el-radio-group v-model="form.zzNewInvestors">
                      <el-radio
                        v-for="dict in zzNewInvestorsOptions"
                        :key="dict.dictValue"
                        :label="dict.dictValue"
                      >{{ $t(dict.dictLabel) }}
                      </el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item :label="$t('新增出资人类型')" prop="zzNewInvestorsType">
                    <span slot="label">
                      {{ $t('新增出资人类型') }}
                      <el-tooltip :content="$t('若有多个新增出资人的，按照所有出资人类型合并判断，若存在非国有全资出资人的，该字段即判定为非国有全资出资人')" placement="top">
                        <i class="el-icon-question" />
                      </el-tooltip>
                    </span>
                    <dict-select
                      v-model="form.zzNewInvestorsType"
                      dictionary="new_investors_type"
                      :placeholder="$t('新增出资人类型')"
                    />
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item :label="$t('同比例增资')" prop="zzProportionalCapitalIncrease">
                    <span slot="label">
                      {{ $t('同比例增资') }}
                      <el-tooltip :content="$t('若新增出资人为是，则同比例增资必然为否')" placement="top">
                        <i class="el-icon-question" />
                      </el-tooltip>
                    </span>
                    <el-radio-group v-model="form.zzProportionalCapitalIncrease">
                      <el-radio
                        v-for="dict in zzProportionalCapitalIncreaseOptions"
                        :key="dict.dictValue"
                        :label="dict.dictValue"
                      >{{ $t(dict.dictLabel) }}
                      </el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item prop="zzCompanyValuation">
                    <i v-if="form.zzNewInvestorsType === 'FGYQZCZR'" style="color: #ff4949;margin-right: 4px;">*</i>
                    <span style="font-weight: bolder">{{ $t('公司评估值') + $t('金额单位') }}</span>
                    <Money v-model="form.zzCompanyValuation" unit="w" :placeholder="$t('公司评估值') + $t('金额单位')" />
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item :label="$t('公司最近一期经审计净资产') + $t('金额单位')" prop="zzAuditedNetAssets">
                    <Money v-model="form.zzAuditedNetAssets" unit="w" :placeholder="$t('公司最近一期经审计净资产') + $t('金额单位')" />
                  </el-form-item>
                </el-col>
              </div>
            </el-row>
            <el-row>
              <div v-if="form.registrationTypeTwo === 'JZ'">
                <div class="area-header">
                  <span class="area-header-title">{{ $t('减资') }}</span>
                </div>
                <el-col :span="12">
                  <el-form-item :label="$t('同比例减资')" prop="jzCapitalReductions">
                    <el-radio-group v-model="form.jzCapitalReductions">
                      <el-radio
                        v-for="dict in jzCapitalReductionsOptions"
                        :key="dict.dictValue"
                        :label="dict.dictValue"
                      >{{ $t(dict.dictLabel) }}
                      </el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item prop="jzCompanyValuation">
                    <i v-if="form.jzCapitalReductions === 'N' && form.institutionsCategory !== 'GYQZ'" style="color: #ff4949;margin-right: 4px;">*</i>
                    <span style="font-weight: bolder">{{ $t('公司评估值') + $t('金额单位') }}</span>
                    <Money v-model="form.jzCompanyValuation" unit="w" :placeholder="$t('公司评估值') + $t('金额单位')" />
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item :label="$t('公司最近一期经审计净资产') + $t('金额单位')" prop="jzAuditedNetAssets">
                    <Money v-model="form.jzAuditedNetAssets" unit="w" :placeholder="$t('公司最近一期经审计净资产') + $t('金额单位')" />
                  </el-form-item>
                </el-col>
              </div>
            </el-row>
          </el-row>
        </el-row>
        <div class="area-header">
          <span class="area-header-title">{{ $t('管理人员') }}</span>
        </div>
        <el-table
          :data="form.propertyLeaderList"
          border
          class="nowrapTable formTable"
        >
          <el-table-column :label="$t('序号')" type="index" align="center" width="50">
            <template slot-scope="scope">
              {{ scope.$index + 1 }}
            </template>
          </el-table-column>
          <el-table-column :label="$t('姓名')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('姓名') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.name'" :rules="propertyLeaderListRules.name">
                <el-input v-model="scope.row.name" :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'" :placeholder="$t('姓名')" show-word-limit maxlength="100" />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('性别')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('性别') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.gender' " :rules="propertyLeaderListRules.gender">
                <dict-select
                  v-model="scope.row.gender"
                  :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'"
                  dictionary="sys_user_sex"
                  :placeholder="$t('性别')"
                />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('职务')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('职务') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.duty' " :rules="propertyLeaderListRules.duty">
                <el-input v-model="scope.row.duty" :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'" :placeholder="$t('职务')" show-word-limit maxlength="100" />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('上任时间')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('上任时间') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.takeOfficeTime' " :rules="propertyLeaderListRules.takeOfficeTime">
                <el-date-picker
                  v-model="scope.row.takeOfficeTime"
                  :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'"
                  clearable
                  style="width: 200px"
                  type="date"
                  value-format="yyyy-MM-dd"
                  :placeholder="$t('上任时间')"
                />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('离任时间')" align="center" min-width="150">
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.leavePostTime' ">
                <el-date-picker
                  v-model="scope.row.leavePostTime"
                  :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'"
                  clearable
                  style="width: 200px"
                  type="date"
                  value-format="yyyy-MM-dd"
                  :placeholder="$t('离任时间')"
                />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('级别')" align="center" min-width="150">
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.level' ">
                <el-input v-model="scope.row.level" :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'" :placeholder="$t('级别')" show-word-limit maxlength="100" />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('备注')" align="center" min-width="150">
            <template slot-scope="scope">
              <el-form-item :prop="'propertyLeaderList.' + scope.$index + '.leaderRemark' ">
                <el-input v-model="scope.row.leaderRemark" :disabled="form.registrationType !== 'ZYDJ' && form.registrationTypeTwo !== 'QTBD'" type="textarea" class="fileTextarea" :placeholder="$t('备注')" show-word-limit maxlength="1000" />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column v-if="!otherBtnHide && form.last !== 'N'" :label="$t('操作')" align="center" min-width="150">
            <template slot-scope="scope">
              <el-button v-hasPermi="['property:propertyCompany:remove']" size="small" type="text" icon="el-icon-delete" @click="delHandleLeader(scope.$index, scope.row)" />
            </template>
          </el-table-column>
        </el-table>
        <div v-if="!otherBtnHide && form.last !== 'N'" class="tol">
          <el-button type="primary" icon="el-icon-plus" size="mini" @click="addPropertyLeader">{{ $t("添加") }}</el-button>
        </div>
        <br>
        <br>
        <div class="area-header">
          <span class="area-header-title">{{ $t('出资信息') }}</span>
        </div>
        <el-table
          :data="form.propertyShareholderList"
          border
          class="nowrapTable formTable"
        >
          <el-table-column :label="$t('序号')" type="index" align="center" width="50">
            <template slot-scope="scope">
              {{ scope.$index + 1 }}
            </template>
          </el-table-column>
          <el-table-column :label="$t('出资人来源')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('出资人来源') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.sourceInvestor' " :rules="propertyShareholderListRules.sourceInvestor">
                <dict-select
                  v-model="scope.row.sourceInvestor"
                  :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))"
                  dictionary="source_investor"
                  :placeholder="$t('出资人来源')"
                  @change="isSelect(scope.row)"
                />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('出资人类型')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('出资人类型') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.sourceType' " :rules="propertyShareholderListRules.sourceType">
                <dict-select
                  v-model="scope.row.sourceType"
                  :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))"
                  dictionary="cc_investor_type"
                  :placeholder="$t('出资人类型')"
                />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('公司名称')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('公司名称') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.companyNameId' " :rules="propertyShareholderListRules.companyNameId">
                <el-select v-if="scope.row.sourceInvestor === 'JTNBGS'" v-model="scope.row.companyNameId" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" filterable :placeholder="$t('公司名称')" clearable>
                  <el-option
                    v-for="dict in findCompanyIdOptions"
                    :key="dict.id"
                    :label="$t(dict.companyId)"
                    :value="dict.id"
                  />
                </el-select>
                <el-input v-if="scope.row.sourceInvestor !== 'JTNBGS'" v-model="scope.row.companyNameId" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" :placeholder="$t('公司名称')" show-word-limit maxlength="100" />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('社会统一信用代码')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('社会统一信用代码') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.creditCode' " :rules="propertyShareholderListRules.creditCode">
                <el-input v-model="scope.row.creditCode" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" :placeholder="$t('社会统一信用代码')" show-word-limit maxlength="100" />
              </el-form-item>
            </template>
          </el-table-column>

          <el-table-column :label="$t('认缴资本') + $t('金额单位')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('认缴资本') + $t('金额单位') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.subscribedCapital' " :rules="propertyShareholderListRules.subscribedCapital">
                <Money v-model="scope.row.subscribedCapital" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" unit="w" :placeholder="$t('认缴资本') + $t('金额单位')" />
              </el-form-item>
            </template>
          </el-table-column>

          <el-table-column :label="$t('实缴资本') + $t('金额单位')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('实缴资本') + $t('金额单位') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.contributedCapital' " :rules="propertyShareholderListRules.contributedCapital">
                <Money v-model="scope.row.contributedCapital" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" unit="w" :placeholder="$t('实缴资本') + $t('金额单位')" />
              </el-form-item>
            </template>
          </el-table-column>

          <el-table-column :label="$t('出资比例(%)')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('出资比例(%)') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.ratioInvestment' " :rules="propertyShareholderListRules.ratioInvestment">
                <Ratio v-model="scope.row.ratioInvestment" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" :controls="false" :min="0" :max="100" :precision="2" />
              </el-form-item>
            </template>
          </el-table-column>

          <el-table-column :label="$t('表决权比例(%)')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('表决权比例(%)') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.proportionVotingPower' " :rules="propertyShareholderListRules.proportionVotingPower">
                <Ratio v-model="scope.row.proportionVotingPower" :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))" :controls="false" :min="0" :max="100" :precision="2" />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column :label="$t('币种')" align="center" min-width="150">
            <template slot="header" slot-scope="{}">
              <i style="color: #ff4949;margin-right: 4px;">*</i>
              <span>{{ $t('币种') }}</span>
            </template>
            <template slot-scope="scope">
              <el-form-item :prop="'propertyShareholderList.' + scope.$index + '.currency' " :rules="propertyShareholderListRules.currency">
                <dict-select
                  v-model="scope.row.currency"
                  :disabled="form.registrationType !== 'ZYDJ' && !(form.registrationTypeTwo === 'QTGDXXBD' || form.registrationTypeTwo === 'QTGDRJZJ' || (form.registrationTypeTwo === 'CQZRBF' && (form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRWCHZ')) || form.registrationTypeTwo === 'ZZ' || form.registrationTypeTwo === 'JZ' || form.registrationTypeTwo === 'SSZBZJ' || form.registrationTypeTwo === 'QTBD' || (form.registrationTypeTwo === 'CQZRQB' && (form.registrationTypeThree === 'ZRJCJY' || form.registrationTypeThree === 'ZRXYZR' || form.registrationTypeThree === 'ZRWCHZ')))"
                  dictionary="currency"
                  :placeholder="$t('币种')"
                />
              </el-form-item>
            </template>
          </el-table-column>
          <el-table-column v-if="!otherBtnHide && form.last !== 'N'" :label="$t('操作')" align="center" width="80" min-width="150">
            <template slot-scope="scope">
              <el-button v-hasPermi="['property:propertyCompany:remove']" size="small" type="text" icon="el-icon-delete" @click="delHandleShareholder(scope.$index, scope.row)" />
            </template>
          </el-table-column>
        </el-table>
        <div v-if="!otherBtnHide && form.last !== 'N'" class="tol">
          <el-button type="primary" icon="el-icon-plus" size="mini" @click="addpropertyShareholder">{{ $t("添加") }}</el-button>
        </div>
        <br>
        <br>
      </el-row>
      <FileTable v-if="form.last !== 'N'" :list.sync="form.fileList" data-type="property_company" :btn-show="!otherBtnHide" />
    </el-form>
    <br>
    <br>
    <!--    <div v-if="edit" slot="footer" class="dialog-footer" style="text-align: center;">-->
    <!--      &lt;!&ndash;保存 取消按钮&ndash;&gt;-->
    <!--      <FormBtn ref="formBtn" :bus-data="form" has-permi="property:propertyCompany" :menu-key="menuKey" />-->
    <!--    </div>-->
    <div v-if="form.last !== 'N' && !this.$route.query.id" slot="footer" class="dialog-footer" style="text-align: right;">
      <!--保存 取消按钮-->
      <el-button v-if="form.actStatus !== 'D'" @click="cancel()">{{ $t("取消") }}</el-button>
      <el-button
        v-if="form.actStatus !== 'D' "
        v-hasPermi="['property:propertyCompany:edit']"
        type="primary"
        @click="submitForm('save')"
      >{{ $t("保存") }}
      </el-button>
      <el-button
        v-if="form.actStatus !== 'D'"
        v-hasPermi="['property:propertyCompany:edit']"
        type="primary"
        @click="submitForm('process')"
      >{{ $t("保存并启动流程") }}
      </el-button>
    </div>

    <!-- 预览附件 -->
    <OnlinePreview ref="OnlinePreview" />
  </div>
</template>

<script>
    import { savePropertyCompany, getPropertyCompany, delPropertyLeader, delPropertyShareholder, findCompanyId } from '@/api/company/propertyCompany/propertyCompany'
    import {
      getCompanyByDealId
    } from '@/api/company/base/companyBase'
    import DealSelect from '@/components/Select/dealSelect'
    export default {
      components: {
        DealSelect
      },
        data() {
            return {
              otherBtnHide: false,
              isDealId: undefined,
              // 变更/注销
              edit: undefined,
              // 菜单标识
              menuKey: 'property_company',
              isShowParentCompanyId: true,
              isShowParentCompanyCentum: true,
              // 公司名称下拉
              isInvestorSelect: true,
              // 公司名称文本
              isInvestorInput: false,
              // 三级类型是否禁用
              isShow: false,
              isQueryCompany: false,
              // 登记类型一级
              registrationTypeOptions: [],
              // 登记类型二级
              getTypeOneChange: [],
              // 登记类型三级
              getTypeTwoChange: [],
              // 是否字典
              yesNoOptions: [],
              // 公司名称
              findCompanyIdOptions: [],
              // 上级公司
              parentCompanyIdOptions: [],
              mixedSystemOptions: [],
              jcIsNatyesNoOptions: [],
              xyIsNationalHoldings: [],
              zzNewInvestorsOptions: [],
              zzProportionalCapitalIncreaseOptions: [],
              jzCapitalReductionsOptions: [],
                // 表单参数
                form: {
                  // 管理人员
                  propertyLeaderList: [],
                  // 出资信息
                  propertyShareholderList: []
                },
                // 遮罩层
                loading: false,
                // 表单校验
                rules: {
                registrationType: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                registrationTypeTwo: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                registrationTypeThree: [
                    { required: true, validator: this.isregistrationTypeThree, trigger: 'blur' }
                ],
                companyId: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                creditCode: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                registeredCapital: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                currency: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                organizationalForm: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                mainIndustries: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                institutionsCategory: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                detailsRegistered: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                legalPerson: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                estiblishDate: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                isMergeTable: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                businessScope: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcPropertyTrading: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcPropertyTime: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcWithdrawalWay: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcReasonTransfer: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcProportionTransferred: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcTransfereeName: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcTransfereeIndustryType: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcRegistrationPlace: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcIsNationalHoldings: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcAssetValue: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcApprovalAgency: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcForDays: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcPublicAnnouncement: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcTradingVolume: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcEvaluationValue: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcPricePaymentMethod: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jcPaymentRemark: [
                  { required: true, validator: this.isJcPaymentRemark, trigger: 'blur' }
                ],
                xyProportionTransferred: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                xyTransfereeName: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                xyRegistrationPlace: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                xyIsNationalHoldings: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                xyTransferPrice: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                wcProportionTransferred: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                wcTransfereeName: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                zzNewInvestors: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                zzNewInvestorsType: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                zzProportionalCapitalIncrease: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                zzCompanyValuation: [
                    { required: true, validator: this.iszzCompanyValuation, trigger: 'blur' }
                ],
                zzAuditedNetAssets: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jzCapitalReductions: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                jzCompanyValuation: [
                    { required: true, validator: this.isjzCompanyValuation, trigger: 'blur' }
                ],
                  behaviorTime: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  checkTime: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  parentCompanyId: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  parentCompanyCentum: [
                    { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  registrationIs: [
                    { required: false, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  companyLevel: [
                    { required: false, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  dicker: [
                    { required: false, message: this.$t('必填信息'), trigger: 'blur' }
                  ],
                  mixedSystem: [
                    { required: false, message: this.$t('必填信息'), trigger: 'blur' }
                  ]
                },
              propertyLeaderListRules: {
                name: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                gender: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                duty: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                takeOfficeTime: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ]
              },
              propertyShareholderListRules: {
                sourceInvestor: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                sourceType: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                companyNameId: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                creditCode: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                subscribedCapital: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                contributedCapital: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                ratioInvestment: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                proportionVotingPower: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ],
                currency: [
                  { required: true, message: this.$t('必填信息'), trigger: 'blur' }
                ]
              }
            }
        },
        created() {
          // 是否 字典sys_yes_no字典翻译
          this.getDicts('sys_yes_no').then(response => {
            this.yesNoOptions = response.data
            this.jcIsNatyesNoOptions = response.data
            this.xyIsNationalHoldings = response.data
            this.zzNewInvestorsOptions = response.data
            this.jzCapitalReductionsOptions = response.data
            this.zzProportionalCapitalIncreaseOptions = response.data
            this.mixedSystemOptions = response.data
          })
            this.getDicts('registration_type').then(response => {
                this.registrationTypeOptions = response.data
            })
            this.getDicts('jc_approval_agency').then(response => {
                this.jcApprovalAgencyOptions = response.data
            })
            this.getDicts('jc_public_announcement').then(response => {
                this.jcPublicAnnouncementOptions = response.data
            })
            this.getDicts('jc_price_payment_method').then(response => {
                this.jcPricePaymentMethodOptions = response.data
            })
            this.getDicts('new_investors_type').then(response => {
                this.zzNewInvestorsTypeOptions = response.data
            })
        },
      mounted() {
        this.$bus.$emit('async_done')
      },
        methods: {
            // 初始化数据
            init(data, edit) {
                this.loading = true
                if (data != null && data.id !== undefined) {
                    getPropertyCompany(data.id).then(response => {
                        this.form = response.data
                        this.isDealId = this.form.dealId
                        this.edit = edit
                      if (this.form.registrationType !== 'CQBG' && this.form.actStatus === 'W' && this.edit === 'BG') {
                        this.form.registrationTypeTwo = undefined
                      }
                      if (this.form.registrationType !== 'ZXDJ' && this.form.actStatus === 'W' && this.edit === 'ZX') {
                        this.form.registrationTypeTwo = undefined
                      }
                      if (this.form.actStatus === 'W' && this.edit === 'BG') {
                        this.form.registrationType = 'CQBG'
                        if (this.form.registrationTypeTwo === 'JGJCBD') {
                          this.isShowParentCompanyId = true
                        } else {
                          this.isShowParentCompanyId = false
                        }
                      }
                      if (this.form.actStatus === 'W' && this.edit === 'ZX') {
                        this.form.registrationType = 'ZXDJ'
                      }
                      this.typeOneChange(this.form.registrationType, false)
                      findCompanyId().then(response => {
                        this.findCompanyIdOptions = response.data
                        this.parentCompanyIdOptions = response.data
                        if (this.parentCompanyIdOptions.length > 0) {
                          for (var i = 0; i < this.parentCompanyIdOptions.length; i++) {
                            if (this.parentCompanyIdOptions[i].id === this.form.id) {
                              this.isCompanyGroup(this.form)
                            }
                          }
                        } else {
                          this.rules.parentCompanyId = []
                          this.rules.parentCompanyCentum = []
                        }
                      })

                        this.loading = false
                    }).catch(() => {
                      this.loading = false
                    })
                } else {
                    this.reset()
                     this.typeTwoChange(this.form.registrationTypeTwo, false)
                     this.form.registrationType = 'ZYDJ'
                     this.isShowParentCompanyId = true
                     this.getDicts('zy_registration_type').then(response => {
                     this.getTypeOneChange = response.data
                  })
                  findCompanyId().then(response => {
                    this.findCompanyIdOptions = response.data
                    this.parentCompanyIdOptions = response.data
                    if (this.parentCompanyIdOptions.length === 0) {
                      this.rules.parentCompanyId = []
                      this.rules.parentCompanyCentum = []
                    } else {
                      this.rules.parentCompanyId = [{ required: true, message: this.$t('必填信息'), trigger: 'blur' }]
                      this.rules.parentCompanyCentum = [{ required: true, message: this.$t('必填信息'), trigger: 'blur' }]
                    }
                  })

                    this.loading = false
                }
            },
            // 表单重置
            reset() {
                this.form = {
                    id: undefined,
                    dealId: undefined,
                    registrationType: undefined,
                    registrationTypeTwo: undefined,
                    registrationTypeThree: undefined,
                    companyId: undefined,
                    creditCode: undefined,
                    registeredCapital: undefined,
                    currency: undefined,
                    organizationalForm: undefined,
                    mainIndustries: undefined,
                    institutionsCategory: undefined,
                    detailsRegistered: undefined,
                    legalPerson: undefined,
                    estiblishDate: undefined,
                    isMergeTable: undefined,
                    businessScope: undefined,
                    propertyRemark: undefined,
                    jcPropertyTrading: undefined,
                    jcPropertyTime: undefined,
                    jcWithdrawalWay: undefined,
                    jcReasonTransfer: undefined,
                    jcProportionTransferred: undefined,
                    jcTransfereeName: undefined,
                    jcTransfereeIndustryType: undefined,
                    jcRegistrationPlace: undefined,
                    jcIsNationalHoldings: undefined,
                    jcAssetValue: undefined,
                    jcAssessedValue: undefined,
                    jcApprovalAgency: undefined,
                    jcForDays: undefined,
                    jcPublicAnnouncement: undefined,
                    jcTradingVolume: undefined,
                    jcEvaluationValue: undefined,
                    jcPricePaymentMethod: undefined,
                    jcPaymentRemark: undefined,
                    xyProportionTransferred: undefined,
                    xyTransfereeName: undefined,
                    xyRegistrationPlace: undefined,
                    xyIsNationalHoldings: undefined,
                    xyTransferPrice: undefined,
                    wcProportionTransferred: undefined,
                    wcTransfereeName: undefined,
                    zzNewInvestors: undefined,
                    zzNewInvestorsType: undefined,
                    zzProportionalCapitalIncrease: undefined,
                    zzCompanyValuation: undefined,
                    zzAuditedNetAssets: undefined,
                    jzCapitalReductions: undefined,
                    jzCompanyValuation: undefined,
                    jzAuditedNetAssets: undefined,
                    delFlag: undefined,
                    createBy: undefined,
                    createTime: undefined,
                    updateBy: undefined,
                    updateTime: undefined,
                  fileList: [],
                  propertyLeaderList: [],
                  // 出资信息
                  propertyShareholderList: [],
                  behaviorTime: new Date(),
                  checkTime: new Date(),
                  illustrateRemark: undefined,
                  parentCompanyId: undefined,
                  parentCompanyCentum: undefined,
                  actId: undefined,
                  actStatus: undefined,
                  registrationIs: undefined,
                  companyLevel: undefined,
                  dicker: undefined,
                  mixedSystem: undefined
                }
                this.resetForm('form')
            },
            // 取消按钮
            cancel() {
                this.$parent.$parent.formOpen = false
                this.$parent.$parent.propertyCompanyFormOpen = false
                this.$parent.$parent.reset()
            },
            // 关闭form页面
            closeForm() {
                // 关闭form页面遮罩层
                this.loading = false
                // 关闭form页面
                if (this.$parent.$parent.formOpen !== undefined) {
                  this.$parent.$parent.formOpen = false
                }
                // 刷新list页面
                if (this.$parent.$parent.getList !== undefined) {
                  this.$parent.$parent.getList()
                }
            },
          submitForm: function(type) {
            return new Promise((resolve, reject) => {
              this.$refs['form'].validate(valid => {
                // 验证数据
                if (valid) {
                  // 弹出遮罩层
                  this.loading = true
                  // 保存数据
                  savePropertyCompany(this.form).then(response => {
                    if (response.code === 200) {
                      // 点击的按钮是保存并启动流程
                      if (type === 'process') {
                        // 启动流程
                        this.startProcess(response.data)
                        // 点击的仅保存
                      } else {
                        this.msgSuccess(this.$t('保存成功'))
                        // 关闭form页面
                        this.closeForm()
                      }
                      resolve()
                    } else {
                      reject()
                      this.msgError(response.msg)
                      this.loading = false
                    }
                  })
                } else {
                  reject()
                  this.locationError(document)
                }
              })
            })
          },
          // 删除管理人员
          delHandleLeader(index, row) {
            const id = row.id
            if (id !== undefined && id !== '' && id != null) {
              this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
                confirmButtonText: this.$t('确定'),
                cancelButtonText: this.$t('取消'),
                type: 'warning'
              })
                .then(function() {
                  return delPropertyLeader(id)
                }).then(() => {
                this.form.propertyLeaderList.splice(index, 1)
                return this.msgSuccess(this.$t('删除成功'))
              })
                .catch(function() {})
            } else {
              this.form.propertyLeaderList.splice(index, 1)
            }
          },
          // 添加管理人员
          addPropertyLeader() {
            const row = {
              id: undefined,
              propertyId: undefined,
              number: undefined,
              name: undefined,
              gender: undefined,
              duty: undefined,
              takeOfficeTime: undefined,
              leavePostTime: undefined,
              level: undefined,
              leaderRemark: undefined
            }
            if (!(this.form.propertyLeaderList instanceof Array)) {
              this.$set(this.form, 'propertyLeaderList', [])
            }
            this.$nextTick(() => {
              this.form.propertyLeaderList.push(row)
            })
          },
          // 删除出资人信息
          delHandleShareholder(index, row) {
            const id = row.id
            if (id !== undefined && id !== '' && id != null) {
              this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
                confirmButtonText: this.$t('确定'),
                cancelButtonText: this.$t('取消'),
                type: 'warning'
              })
                .then(function() {
                  return delPropertyShareholder(id)
                }).then(() => {
                this.form.propertyShareholderList.splice(index, 1)
                return this.msgSuccess(this.$t('删除成功'))
              })
                .catch(function() {})
            } else {
              this.form.propertyShareholderList.splice(index, 1)
            }
          },
          // 添加出资人信息
          addpropertyShareholder() {
            const row = {
              id: undefined,
              propertyId: undefined,
              number: undefined,
              sourceInvestor: undefined,
              sourceType: undefined,
              companyNameId: undefined,
              companyNameText: undefined,
              creditCode: undefined,
              subscribedCapital: undefined,
              contributedCapital: undefined,
              ratioInvestment: undefined,
              proportionVotingPower: undefined,
              currency: undefined
            }
            if (!(this.form.propertyShareholderList instanceof Array)) {
              this.$set(this.form, 'propertyShareholderList', [])
            }
            this.$nextTick(() => {
              this.form.propertyShareholderList.push(row)
            })
          },
          // 根据项目id查询公司信息
          queryCompany(dealId) {
              if (dealId && this.isDealId !== dealId) {
            getCompanyByDealId(dealId).then(res => {
              if (res.data) {
                this.form.companyId = res.data.companyName
                this.form.creditCode = res.data.creditCode
                this.form.registeredCapital = res.data.capitalRegistered
                this.form.currency = res.data.currency
                this.form.detailsRegistered = res.data.detailsRegistered
                this.form.legalPerson = res.data.legalPerson
                this.form.estiblishDate = res.data.setDate
                this.form.businessScope = res.data.businessScope
              }
            })
              }
          },
          // 获取二级字典
          typeOneChange(typeOne, clearTwo) {
            if (clearTwo) {
              this.form.registrationTypeTwo = undefined
            }
            this.getTypeOneChange = []
            const object = this.registrationTypeOptions.find(obj => obj.dictValue === typeOne)
            var typeOneChildren
            if (object) {
              typeOneChildren = object.childDict
            }
            if (typeOneChildren !== undefined && typeOneChildren !== null && typeOneChildren !== '') {
              this.getDicts(typeOneChildren).then(response => {
                this.getTypeOneChange = response.data
                this.typeTwoChange(this.form.registrationTypeTwo, false)
              })
            }
          },
          // 获取三级字典
          typeTwoChange(typeTwo, clearTwo) {
              // 三级是否禁选
              if (typeTwo) {
                this.isShow = typeTwo === 'CQZRBF' || typeTwo === 'ZZ' || typeTwo === 'CQZRQB'
              } else {
                this.isShow = false
              }
            // 获取三级字典
            if (clearTwo) {
              this.form.registrationTypeThree = undefined
            }
            this.getTypeTwoChange = []
            const object = this.getTypeOneChange.find(obj => obj.dictValue === typeTwo)
            var typeTwoChildren
            if (object) {
              typeTwoChildren = object.childDict
            }
            if (typeTwoChildren !== undefined && typeTwoChildren !== null && typeTwoChildren !== '') {
              this.getDicts(typeTwoChildren).then(response => {
                this.getTypeTwoChange = response.data
              })
            } else {
              this.getTypeTwoChange = []
              this.form.registrationTypeThree = undefined
            }
            if (this.form.actStatus === 'W') {
            if (typeTwo === 'JGJCBD') {
              this.isShowParentCompanyId = true
            } else {
              this.isShowParentCompanyId = false
            }
            }
          },
          // 处理空数据
          transZero(val) {
            if (val !== undefined && val !== null && val !== '') {
              return val
            }
            return 0
          },

          // 计算 较评估值增加（减少）比例
          countJcEvaluationValue() {
            if (this.form.jcTradingVolume) {
              // 已评估
              this.form.jcEvaluationValue = (this.transZero(this.form.jcTradingVolume) - this.transZero(this.form.jcAssessedValue)) / this.transZero(this.form.jcAssessedValue)
            } else {
              // 未评估
              this.form.jcEvaluationValue = (this.transZero(this.form.jcTradingVolume) - this.transZero(this.form.jcAssetValue)) / this.transZero(this.form.jcAssetValue)
            }
          },
          // 支付方式备注是否必填
          async isJcPaymentRemark(rule, value, callback) {
            if ((this.form.jcPricePaymentMethod === 'FQFK' || this.form.jcPricePaymentMethod === 'QT') && !this.form.jcPaymentRemark) {
              callback(new Error(this.$t('必填信息')))
            } else {
              callback()
            }
          },
          // 公司评估值是否必填
          async iszzCompanyValuation(rule, value, callback) {
            if ((this.form.zzNewInvestorsType === 'FGYQZCZR') && !this.form.zzCompanyValuation) {
              callback(new Error(this.$t('必填信息')))
            } else {
              callback()
            }
          },
          async isjzCompanyValuation(rule, value, callback) {
            if ((this.form.jzCapitalReductions === 'N' && this.form.institutionsCategory !== 'GYQZ') && !this.form.jzCompanyValuation) {
              callback(new Error(this.$t('必填信息')))
            } else {
              callback()
            }
          },
          // 三级选项是否必填
          async isregistrationTypeThree(rule, value, callback) {
            if ((this.form.registrationTypeTwo === 'ZZ' || this.form.registrationTypeTwo === 'CQZRBF' || this.form.registrationTypeTwo === 'CQZRQB') && !this.form.registrationTypeThree) {
              callback(new Error(this.$t('必填信息')))
            } else {
              callback()
            }
          },
          // async checkParentCompany(rule, value, callback) {
          //   if (!value) {
          //     if (this.parentCompanyIdOptions.length > 0) {
          //       if (!this.form.id) {
          //         callback(new Error(this.$t('必填信息')))
          //       } else {
          //         getPropertyCompany(this.form.id).then(response => {
          //           if (response.data.parentCompanyId && response.data.parentCompanyId) {
          //             callback(new Error(this.$t('必填信息')))
          //           } else {
          //             callback()
          //           }
          //         })
          //       }
          //     } else {
          //       callback()
          //     }
          //   } else {
          //     callback()
          //   }
          // },
          // 公司名称样式
          isSelect(row) {
            row.companyNameId = undefined
              // if (row === 'QTGD') {
              //   this.form.propertyShareholderList[index].companyNameId = undefined
              //   this.isInvestorSelect = false
              //   this.isInvestorInput = true
              // } else {
              //   this.form.propertyShareholderList[index].companyNameId = undefined
              //   this.isInvestorSelect = true
              //   this.isInvestorInput = false
              // }
          },
          // 流程
          // 启动流程
          startProcess: function(dataId) {
            this.loading = false
            // 启动流程时候传入的参数
            const processData = {}
              if (this.form.registrationType === 'ZYDJ') {
                this.form.actTitle = '占有登记' + '-' + this.form.companyId
              }
              if (this.form.registrationType === 'CQBG') {
                this.form.actTitle = '产权变更' + '-' + this.form.companyId
              }
              if (this.form.registrationType === 'ZXDJ') {
                this.form.actTitle = '注销登记' + '-' + this.form.companyId
              }
            // 待办标题
            processData.title = this.form.actTitle
            // 业务表名
            processData.dataTable = 'property_company'
            // 业务ID
            processData.dataId = dataId
            // 业务表单地址(待办页面需要打开的页面)
            processData.formPath = '@/views/company/propertyCompany/propertyCompanyForm'
            processData.viewPath = '@/views/company/propertyCompany/propertyCompanyForm'
            // 菜单标识(根据菜单标识判断的走哪个流程)
            processData.menuKey = this.menuKey
            this.startProcessByMenu(processData, () => {
              this.form.actStatus = 'D'
              this.msgSuccess(this.$t('数据保存成功,流程启动成功'))
              this.closeForm()
            })
          },
          // 变更时可修改字段
          isEditCompanyId() {
              if (this.addShow) {
                if (this.form.registrationTypeTwo === 'QTBD') {
                 return false
                } else {
                  return true
                }
              }
          },
          // 是否为集团公司
          isCompanyGroup(data) {
            if (data.parentCompanyId === null || data.parentCompanyId === undefined || data.parentCompanyId === '') {
              this.rules.parentCompanyId = []
              this.rules.parentCompanyCentum = []
            } else {
              this.rules.parentCompanyId = [{ required: true, message: this.$t('必填信息'), trigger: 'blur' }]
              this.rules.parentCompanyCentum = [{ required: true, message: this.$t('必填信息'), trigger: 'blur' }]
            }
          }
        }
    }
</script>
